﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderPick.aspx.cs" Inherits="RLRT.Web.OrderPick" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>工令领用</title>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Page">
            <div class="Title">
                <asp:Label ID="PageTitle" runat="server" Text="工令领用"></asp:Label>
            </div>
            <div class="Operating">
                <ul>
                    <li class="Caption">工令号
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="ORDNO" runat="server" CssClass="Required" OnTextChanged="ORDNO_TextChanged" AutoPostBack="True"></asp:TextBox>
                        <%--  <asp:DropDownList ID="ORDNO" runat="server" CssClass="Required" OnSelectedIndexChanged="ORDNO_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>--%>
                    </li>
                    <li class="Caption">仓库
                    </li>
                    <li class="Content">
                        <asp:DropDownList ID="WhCode" runat="server" CssClass="Required"></asp:DropDownList>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">图号
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="DrawNo" runat="server" CssClass="" ReadOnly="True"></asp:TextBox><asp:LinkButton ID="selBOM" Style="display: inline-block;" runat="server" CssClass="ImageButton ImageButtonDetail" ToolTip="选择工件"></asp:LinkButton>
                    </li>
                    <li class="Caption">工令数量
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="OrQty" runat="server" CssClass="" ReadOnly="True"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Caption">领料单号
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="PickNo" runat="server" CssClass="Required"></asp:TextBox>
                    </li>
                    <li class="Caption">领用日期
                    </li>
                    <li class="Content">
                        <asp:TextBox ID="PickDate" runat="server" CssClass="Date"></asp:TextBox>
                    </li>
                    <li class="LineFeed"></li>
                    <li class="Button">
                        <asp:Button ID="DeleteButton" runat="server" Text="<%$ Resources:iiWeb, DeleteButton %>"
                            CssClass="Highlighted" OnClick="DeleteButton_Click" />
                        <asp:Button ID="SaveButton" runat="server" Text="保存"
                            CssClass="Highlighted" OnClick="SaveButton_Click" />
                        <asp:Button ID="RefreshButton" Style="display: none;" runat="server" Text="刷新" OnClick="RefreshButton_Click" />
                        <asp:Button ID="CancelButton" runat="server" Text="取消"
                            OnClick="CancelButton_Click" />
                    </li>
                </ul>
            </div>

            <div class="List">
                <asp:Label ID="DetailLabel" runat="server" Text="注：领用数量可以输入负值（例如-1），表示退领" Font-Bold="True" Font-Size="15px"></asp:Label>
                <asp:GridView ID="List" runat="server" EmptyDataText="<%$ Resources:iiWeb, EmptyData %>" AllowPaging="false"
                    EnableModelValidation="True">
                    <Columns>
                         <asp:TemplateField HeaderText="删除">
                            <ItemTemplate>
                                <input type="checkbox" id="RowCheck" runat="server" class="Check" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="bomseq" HeaderText="序号" />
                        <asp:BoundField DataField="bompno" HeaderText="工件号" />
                        <asp:BoundField DataField="bomnam" HeaderText="工件名称" />
                        <asp:BoundField DataField="bomspc" HeaderText="规格" />
                        <asp:BoundField DataField="bommat" HeaderText="材质" />
                        <asp:BoundField DataField="bomuit" HeaderText="单位" />
                        <asp:BoundField DataField="bomreq" HeaderText="需求数量" />
                        <asp:TemplateField HeaderText="领用数量">
                            <ItemTemplate>
                                <asp:TextBox ID="pickqty" runat="server" Text='<%# Eval("pickqty").ToString().Trim() %>' Width="90%" CssClass="Required Float"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </div>
    </form>
</body>
</html>
